package com.scgl.factory.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.Date;
import java.util.List;

/**
 * 【请填写功能名称】对象 factory
 *
 * @author mobai
 * @date 2024-10-24
 */
public class Factory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 多级联动 */
    private Long linkage;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 编号 */
    @Excel(name = "编号")
    private String num;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 工厂id */
    private Long factoryId;

    /** 车间id */
    private Long workshopId;

    /** 生产线id */
    private Long lineId;

    /** 工厂地址 */
    @Excel(name = "工厂地址")
    private String address;

    private Long type;
    /** 备注 */
    @Excel(name = "备注")
    private String memo;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createName;

    /** 删除 */
    private Long isDelete;

    @Excel(name = "车间名称")
    private String workshopName;
    @Excel(name = "生产线名称")
    private String lineName;
    @Excel(name = "工厂名称")
    private String factoryName;

    private List<Factory> children;
    private String label;

    @Override
    public String toString() {
        return "Factory{" +
                "id=" + id +
                ", linkage=" + linkage +
                ", createDate=" + createDate +
                ", num='" + num + '\'' +
                ", name='" + name + '\'' +
                ", factoryId=" + factoryId +
                ", workshopId=" + workshopId +
                ", lineId=" + lineId +
                ", address='" + address + '\'' +
                ", type=" + type +
                ", memo='" + memo + '\'' +
                ", createName='" + createName + '\'' +
                ", isDelete=" + isDelete +
                ", workshopName='" + workshopName + '\'' +
                ", lineName='" + lineName + '\'' +
                ", factoryName='" + factoryName + '\'' +
                ", children=" + children +
                ", label='" + label + '\'' +
                '}';
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public List<Factory> getChildren() {
        return children;
    }

    public void setChildren(List<Factory> children) {
        this.children = children;
    }

    public String getWorkshopName() {
        return workshopName;
    }

    public void setWorkshopName(String workshopName) {
        this.workshopName = workshopName;
    }

    public String getLineName() {
        return lineName;
    }

    public void setLineName(String lineName) {
        this.lineName = lineName;
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setLinkage(Long linkage)
    {
        this.linkage = linkage;
    }

    public Long getLinkage()
    {
        return linkage;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setNum(String num)
    {
        this.num = num;
    }

    public String getNum()
    {
        return num;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setFactoryId(Long factoryId)
    {
        this.factoryId = factoryId;
    }

    public Long getFactoryId()
    {
        return factoryId;
    }
    public void setWorkshopId(Long workshopId)
    {
        this.workshopId = workshopId;
    }

    public Long getWorkshopId()
    {
        return workshopId;
    }
    public void setLineId(Long lineId)
    {
        this.lineId = lineId;
    }

    public Long getLineId()
    {
        return lineId;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setMemo(String memo)
    {
        this.memo = memo;
    }

    public String getMemo()
    {
        return memo;
    }
    public void setCreateName(String createName)
    {
        this.createName = createName;
    }

    public String getCreateName()
    {
        return createName;
    }
    public void setIsDelete(Long isDelete)
    {
        this.isDelete = isDelete;
    }

    public Long getIsDelete()
    {
        return isDelete;
    }

}
